#!/usr/bin/env ruby

keys = %w(CNT.transactions CNT.files_created CNT.creation_alone CNT.creation_mixed_trans
          CNT.files_read CNT.files_appended CNT.files_deleted CNT.deletion_alone
          CNT.deletion_mixed_trans GAUGE.data_read GAUGE.data_written)

while (line = $stdin.gets)
  case line.chomp!
  when /^[0-9. ]+$/
    data = line.split
    data[2..-1].each_with_index do |v, i|
      puts "#{keys[i]}: #{v}"
    end
    exit
  end
end
